package com.dks.repository.impl;

import java.util.*;

import com.dks.mapper.AliyunSendSmsLogsMapper;
import com.dks.models.AliyunSendSmsLogs;
import com.dks.repository.IAliyunSendSmsLogsRepository;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class AliyunSendSmsLogsRepository implements IAliyunSendSmsLogsRepository {

    private AliyunSendSmsLogsMapper aliyunSendSmsLogsMapper;

    @Autowired
    public AliyunSendSmsLogsRepository(final AliyunSendSmsLogsMapper aliyunSendSmsLogsMapperIn) {
        this.aliyunSendSmsLogsMapper = aliyunSendSmsLogsMapperIn;
    }

    @Override
    public Integer insert(AliyunSendSmsLogs aliyunSendSmsLogs){
        return aliyunSendSmsLogsMapper.insert(aliyunSendSmsLogs);
    }

    @Override
    public Integer update(AliyunSendSmsLogs aliyunSendSmsLogs){
        return aliyunSendSmsLogsMapper.update(aliyunSendSmsLogs);
    }

    @Override
    public Integer delete(Integer id){
        return aliyunSendSmsLogsMapper.delete(id);
    }

    @Override
    public AliyunSendSmsLogs select(Integer id){
        return aliyunSendSmsLogsMapper.select(id);
    }

    @Override
    public Integer cntByMap(Map<String,Object> map){
        return aliyunSendSmsLogsMapper.cntByMap(map);
    }

    @Override
    public List<Integer> getByMap(Map<String,Object> map){
        return aliyunSendSmsLogsMapper.getByMap(map);
    }

    @Override
    public List<AliyunSendSmsLogs> getByMapList(Map<String,Object> map){
        return aliyunSendSmsLogsMapper.getByMapList(map);
    }

    @Override
    public Integer updateByCode(AliyunSendSmsLogs aliyunSendSmsLogs){
        return aliyunSendSmsLogsMapper.updateByCode(aliyunSendSmsLogs);
    }

    @Override
    public AliyunSendSmsLogs selectByBfCode(String bfCode){
        return aliyunSendSmsLogsMapper.selectByBfCode(bfCode);
    }
}
